package edu.chl.food_store.beans.model;

import java.io.Serializable;
import javax.faces.bean.*;

/**
 * LoginModelBean:
 * Keeps track of the login status of the current user.
 */
@ManagedBean
@SessionScoped
public class LoginModelBean implements Serializable {

    //User data
    private String email;
    private String password;
    //Is the customers logged in?
    private boolean loggedIn = false;
    //Does customer have admin-status?
    private boolean admin = false;

    public boolean isAdmin() {
        return admin;
    }

    public void setAdmin(boolean admin) {
        this.admin = admin;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public boolean isLoggedIn() {
        return loggedIn;
    }

    public void setLoggedIn(boolean loggedIn) {
        this.loggedIn = loggedIn;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
